﻿using System.Collections.Generic;
using System.Data;

namespace Hangfire_Demo.Data
{
    public class CollectModel
    {
    }

    public class SamplePoint
    {
        public string pointDescription { get; set; }
        public bool IsRead { get; set; } = true;
        public string readPoint { get; set; }
        public string dataType { get; set; }
        public object resData { get; set; } = string.Empty;
        public float Ratio { get; set; } = 10;
        public string mark { get; set; } = string.Empty;

        /// <summary>
        /// 项编码
        /// </summary>
        public string ItemEncoding { get; set; }

        /// <summary>
        /// 采集单位
        /// </summary>
        public string unit { get; set; }
    }

    public class Device
    {
        public int number { get; set; }
        public string place { get; set; }
        public string deviceName { get; set; }
        public bool IsCollect { get; set; } = true;

        public List<SamplePoint> samplePoints { get; set; }

        public string factoryCode { get; set; } = "10J";

        public string deviceState { get; set; } = "0";  //0正常 1 故障
        /// <summary>
        /// 设备编码
        /// </summary>
        public string deviceCode { get; set; }

        public string eamCode { get; set; }

        public string connectAddress { get; set; }
        public int connectPort { get; set; } = 502;
        public int connectStation { get; set; } = 0x01;

    }
}
